Skip to content

Read Ra as a Korean family name and given name, not only a credential and a title (#1483) - #1520

Merged
derek73 merged 6 commits into
masterfrom
feat/ra-name-readings
Nov 22, 2026
Merged

derek73 merged 6 commits into
masterfrom
feat/ra-name-readings

Conversation

@derek73

@derek73 derek73 commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

Closes #1483

Decided 2026-11-21: Proposal B. ra now has name readings by default. The three follow-up steps of the 2026-11-19 Burmese decision landed in #1489, so nothing of the issue stays open.

What changes

ra was two things and nothing else: en.toml's ungated credential and de.toml's academic title (Rechtsanwalt). So it was:

  • the suffix ending a name, whatever the case (Kim Ra, Sang Hak Ra);
  • the title opening one (Ra Mi Kim, Mr Ra Kumar).

Yet it is borne as a Korean surname and given name. ko.toml now gives it a family and a given reading, which derive the gated markers:

  • the credential needs a word to spare and the case signal (rules/S4, an ambiguous acronym needs words to spare; rules/S6, the case signal at the suffix slot);
  • the title reads only inside a title phrase (rules/H9, a title that is also a given name).
Input 3.1.0 (and 1.4.0 unless noted) This PR
Sang Hak Ra family Hak, suffix Ra middle Hak, family Ra
Kim Ra suffix Ra, no family (1.4.0: family Ra) family Ra
Ra Mi Kim title Ra given Ra
Mr Ra Kumar title Mr Ra title Mr, given Ra
Ra Kim under FAMILY_FIRST title Ra family Ra, given Kim
Jane Doe née Ra family née, suffix Ra maiden Ra
John Smith, RA suffix RA suffix RA (unchanged)
Jane Doe, PT, RA suffix PT, RA suffix PT, RA (unchanged)
Jane Doe, R.A. suffix R.A. suffix R.A. (unchanged)

Which file. The readings are in ko.toml, the file of the language whose names carry the word (nameparser/vocab/README.md):

  • Not mul.toml: every strict choice reads it, en among them, so the credential would be gated in English lists.
  • Not my.toml: a copy there moves nothing, since a strict my choice already reads the word as a name.

The Burmese and Indonesian bearers are named in the entry's note.

Family alone was declined. Without the given reading, de.toml's title stays ungated, which breaks two shapes:

  • past a second comma: Jane Doe, PT, RA reads title RA (5 names);
  • after a family comma in capitals: FEC's KING, RA goes from suffix to title (9 names).

A plain German choice

A plain choice of de turns the other files' vocabulary readings of a word off where de.toml holds one, so it drops en.toml's credential. It keeps ko.toml's name readings, because a choice never drops a name reading. With the name readings alone, a plain German choice would therefore have read Hans Müller, RA as given RA, family Hans Müller: the name reversed.

de.toml now carries a credential reading for ra beside its academic one, for Rechtsanwalt written after the name. The default compile already held that reading through en.toml, so _compiled.py is byte-identical. The build checks for one suffix kind per word (4) and for each category reading alike in every file (5) both pass.

Input, plain de choice master this PR
Hans Müller, RA title RA suffix RA
Müller, RA title RA suffix RA
Hans Müller, LL.M., RA title RA, suffix LL.M. suffix LL.M., RA
Hans Müller, Dr., RA title Dr. RA title Dr., suffix RA
Hans Müller RA family RA suffix RA
RA Müller title RA given RA (cost 1 below)
RA Dr. Hans Müller title RA Dr. given RA, middle Dr. Hans (cost 1)
KING, RA title RA given RA

A strict de choice reads no ko.toml. It keeps the title in front (RA Müller, RA Dr. Hans Müller), and now reads the credential behind it (Hans Müller, RA → suffix RA, where master read title RA).

Accepted costs

  1. RA opening a German name is now the given name (RA Müller → given RA). This holds by default and under a plain German choice; a strict German choice keeps the title.
    • A title behind it then falls into the middle name, as behind any given name: RA Dr. Hans Müller → given RA, middle Dr. Hans, and Herr RA Dr. Müller → title Herr, given RA, middle Dr.. Dean Dr. Hans Müller already reads this way on master.
    • No corpus name writes Rechtsanwalt in front.
  2. A gated acronym without its last stop is no dotted acronym (rules/S3), so R.A reads as a name word:
    • Jane Doe, R.A reverses (given R., middle A, family Jane Doe): 4 ClinicalTrials.gov names, 2 people.
    • Jane Doe R.A reads family R.A.
    • Master reads Jane Doe, M.A, Jane Doe, B.A and John Smith M.A the same way. The cause is classify, which looks the gated set up with the interior stop still in the word, so keeping the suffix means widening that test for every gated acronym; left.
    • For the same class reason, a bracketed R.A. inside a name reads as a middle name (John (R.A.) Smith), as John (M.A.) Smith does on master.
  3. A name wholly in capitals gives no case signal.
    • KIM MI RA keeps suffix RA (not fixed).
    • RA opening the part after a family comma in such a name is now the given name, alone or before a credential: KING, RA, DOE, RA and , RA, and SMITH, RA MD (given RA, suffix MD), where master read the whole part as the suffix. These are the initials FEC's filers mean.
    • Behind a credential it stays in the run (SMITH, MD RA → suffix MD RA).
    • The release log and migrate.rst state this limit.
  4. A word glued to ra at a full stop reads its chunk as the gated acronym. rules/R4's example DUT.RA MARIA SILVA and CLDR's fictional Dut.ra Prof.ra … read the given name where they read the title, and Sang Hak Dut.ra reads suffix Dut.ra.
  5. Kim RA, Jr. reads Kim as a lone given name (rules/O5, a lone name word is given by default) where the title reading had left it the family.
  6. The spaced Italian Sig. ra Rossi reads title Sig., given ra. Master read title Sig. ra. The glued Sig.ra Rossi is unchanged, and decisions/R4's Should Italian abbreviated salutations like Sig.ra and Dott.ssa be titles? Dott.ssa Anna Bianchi reads given Dott.ssa #840 entry is marked superseded.
  7. RA in the given part after a family comma, ahead of a name word, behind a title or not, is the given name, not a title. With no name word after it, Smith, Mr RA keeps suffix RA.
    • Smith, RA John → given RA, middle John; Smith, Mr RA John → title Mr, given RA.
    • Müller, RA Hans reads the same by default and under a plain German choice; a strict German choice keeps the title.
    • This is rules/H9's reading of a title that is also a given name, as Smith, Dean John reads on master. Ahead of a credential the part is still the run (Smith, RA PhD → suffix RA PhD).

Also moved, though not a cost: Ra Kim, Mi reads family Ra Kim, as 1.4.0 did. Two more now read as the gated class already does on master: ROBERT (RA) ALLEN reads nickname RA, as ROBERT (MA) ALLEN does, and Smith, RA PhD Ma reads suffix RA PhD Ma, as Smith, MA PhD Ma does. Not changed: Kim Ae Ra still reads suffix Ae Ra, because ae is still an ungated credential; decisions/S3's open question now rests on ae alone.

Examples that used RA as a dual

RA was the example of "a word of both the title and the suffix vocabulary" in several places:

  • nine rule examples (rules/H3, H4, H6, S1, S7, C5, C12 and C13) and three rule sentences (H4, C9, C11);
  • five decisions Standing lines (H3, H4, H6, S7, C9);
  • eight case rows;
  • eleven code comments and docstrings;
  • a tools test;
  • the paired-initials benchmark.

Each now writes VC, the case row whose name says "rank" LT. Every spelling reads as RA did under 1.4.0, 2.2.0, 2.3.0 and master, so the rows' notes about past versions stay true. The benchmark's counts were re-taken: 35 and 131 is_suffix_piece calls on the tree, and 120 and 1,620 at 47fb2b2, the same as with RA.

Other tests that used ra as a word only a strict choice reads differently now use other words:

  • Ae: the strict-choice parametrisation and docs/locales.rst.
  • An invented credential: the pack-fragment test.
  • THEIN AUNG RA in capitals: the Burmese strict test.

docs/languages.rst's Burmese paragraph and root AGENTS.md's list of duals are corrected: ten words on 2026-11-21, ra out.

Measured

Measured on 2026-11-21 against a checkout of master 81a24221. The full recipe is in decisions/vocabulary-collisions' 2026-11-21 #1483 entry.

  • config_diff.py diff over the 422 names holding the word, at d672700c:

    Configuration Names moved In the role fields
    family reading alone 99 72
    both readings 110 82
    both readings against family alone 32 31

    Before the respelled examples left the corpus, the same recipe gave 431 names and 105 (76), 117 (88) and 38 (36), the figures the decision was made on. Both commands are in the decisions entry.

  • The committed snapshot, against master's record: the nine RA examples leave the corpus, the nine VC spellings join it reading as they did, and the two renderings of cost 4 move. Seven of the nine RA texts read differently in this tree than on master. The snapshot, the CLDR record and the shapes and rules corpora are re-recorded.

  • Local snapshots, measure.py --base:

    Corpus Entries moved
    ctgov-contacts 4
    ctgov-officials 8
    fec-individuals 20
    jrc-names 11
    nepal-candidates 5
    orcid-researchers 26
    patentsview-inventors 19
    psc-individuals 3
    tse-donors 13
    uit-vinames 1

    Every other corpus reports no moves.

  • Agreement with the filed boxes: none broken. Gains:

    • ORCID: 5 records;
    • PatentsView: 12, and 3 records leave the titled count (Ra typed in the given box);
    • Companies House: 3.
  • Readings alike across spellings: JRC-Names 1 person and Nepal 3 pairs now read alike.

Merged with master

#1521 (cheikh and sultan, #1463) landed first. Master was merged in (eb5192ac), not rebased:

  • Release log: both bullets kept.
  • STRICT_UNGATED's comment: both additions kept.
  • Compiled files: regenerated with tools/vocab/build.py, byte-identical to the merge.

Checks

  • Suite: 56,894 passed on the merge, without the ja extra.
  • Lint, types and build: ruff, mypy and build.py --check are clean.
  • Doctests: Sphinx 1,522 with 0 failures; README passes.
  • parity_check.py: 0 of 784 parity rows read otherwise under 1.4.0. The one the first run listed, Doe, RA, is relabelled fix(#296), since 2.2.0 first read it that way.
  • Recorded controls re-taken:
    • The member-pair control reads its recorded 1,608 with VC among the settlers. With RA it had moved to 1,632, unseen.
    • The openers grid's control is 1,062 at c1ceb3b3 in both spellings.
  • Rows against master: all seven feat(#1483) case rows fail on master, and so do six of the eight new German-choice test rows; the other two are boundaries master reads the same way.

Reviews

Four reviews of the first commit, 5ba79720, each fixed in 5e775983.

  • Code review:
    • the capitals limit missing from the release log and migrate.rst;
    • Sig. ra Rossi and decisions/R4;
    • a title after a leading RA, and Jane Doe R.A with no comma;
    • Kim Ae Ra and decisions/S3;
    • migrate.rst's 1.4.0 claim;
    • AGENTS.md's RA example.
  • Test coverage: rows for Kim, Ra, KING, RA, Jane Doe R.A, Kim RA, Jr. and Kim Ra, Jr., Kim Ra, PhD, the lower-case spellings, Ra Kim, Mi, Sig. ra Rossi, RA Dr. Hans Müller, both family-first orders, and more plain and strict German rows. The review also confirmed that the respelled rows keep their branches, by mutation.
  • Comment accuracy:
    • RA still used as the dual in _pieces.py and _comma.py, and in rules/C12;
    • the German row's "no choice" overstatement;
    • a decisions pointer to the wrong file;
    • wording in four notes and comments.
  • Design docs:
    • five decisions Standing lines (S7, H3, H4, H6, C9) still using RA, three of them now false;
    • config_diff figures taken before the respelling;
    • the snapshot breakdown and the CLDR rendering's provenance;
    • rules/C9's sentence.
  • Review of the fix 5e775983, fixed in 88ccf549:
    • rules/C11's prose;
    • the capitals cost's reach (SMITH, RA MD);
    • the unrecorded Smith, RA John class;
    • a version note;
    • locales.rst's "in every parse";
    • a commit cited that is on no branch;
    • RA in two test grids, one of whose controls had moved.
  • Review of the fix 88ccf549, fixed in c94ed751:
    • the Measured bullet's provenance and snapshot breakdown;
    • cost (7) behind a title;
    • cost (3) behind a credential;
    • the summaries' reach.
  • Review of the fix c94ed751: no claim wrong; the summaries were still wider than the behavior (Kim, Ra, Smith, Mr RA), worded exactly in c5f52878, each changed sentence's examples parsed before it was committed.

🤖 Generated with Claude Code

… and a title (#1483)

ra was en.toml's ungated credential and de.toml's academic title with no
name reading, so it was the suffix ending a name in any case (Kim Ra,
Sang Hak Ra) and the title opening one (Ra Mi Kim), though Korean names
bear it as a surname and a given name. ko.toml gives it a family and a
given reading (decisions/vocabulary-collisions' C-i), which derive the
gated markers: the credential needs a word to spare and the case signal
(rules/S4, the ambiguous acronym needing words to spare; rules/S6, the
case signal at the suffix slot) and the title reads only inside a title
phrase (rules/H9). After a comma, past a second one and written R.A.,
the word keeps the credential.

de.toml gains a credential reading for ra beside its academic title, so
a plain German choice, which turns en.toml's credential off, reads
'Hans Muller, RA' as the suffix instead of reversing the name. The
default compile is byte-identical for it.

Rule examples, case rows, code comments and the paired-initials
benchmark that used RA as a title/suffix dual now write VC (LT for the
row naming a rank), each read as RA was under 1.4.0, 2.2.0, 2.3.0 and
master. Tests that used ra as a word a strict choice reads differently
now use Ae and an invented credential. The snapshot, the CLDR record
and the shapes and rules corpora are re-recorded.

Decided 2026-11-21.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@derek73 derek73 added this to the 3.2 milestone Nov 22, 2026
@derek73 derek73 added vocabulary Fixed by a word-list entry: per-word vocabulary and language packs titles Titles and honorifics (rules/H) suffixes Generational suffixes and credentials (rules/S) labels Nov 22, 2026
@derek73 derek73 self-assigned this Nov 22, 2026
derek73 and others added 5 commits November 21, 2026 20:14
…es, rows

The four reviews of the first commit found RA still standing as the
title/suffix dual in five decisions Standing lines (S7, H3 and H4 now
stating readings that no longer hold), in six _pieces.py and _comma.py
docstrings, and in rules/C9 and C12; each now writes VC, read as RA was.

The decisions entry records the costs the first commit missed: a lone RA
after a family comma in a name written wholly in capitals is the given
name, a title behind a leading RA falls into the middle name, R.A with no
comma ends the name as the family, and the spaced Sig. ra no longer joins
the title (decisions/R4's #840 entry marked). Its config_diff figures are
re-taken on the corpora holding the respelled examples (422 names, 99,
110 and 32 moved) with the second command written out, and its snapshot
breakdown and the CLDR rendering's provenance are corrected. The release
log and migrate.rst state the capitals limit.

New case rows pin the comma, order and spelling paths (Kim, Ra; KING, RA;
Jane Doe R.A; Kim RA, Jr.; kim ra; Ra Kim, Mi; Sig. ra Rossi; both
family-first orders), and the German-choice test gains the second-comma,
capitals and strict Kim Ra rows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ts, rows

The review of the first fix found rules/C11's prose still using RA as the
dual, now false ('Smith, Ms RA Ma' reads title 'Ms', given 'RA'); it
writes VC. The capitals cost was narrower than the behavior: RA opening
the part after a family comma in a name wholly in capitals is the given
name before a credential too ('SMITH, RA MD'). And RA opening the given
part after a family comma ahead of a name word is the given name, not
the title ('Smith, RA John', 'Muller, RA Hans' under a plain German
choice), rules/H9's reading of 'Smith, Dean John' on master: recorded as
cost (7), with rows, and the release log and migrate.rst say both.

The member-pair settlers and the openers grid take VC for RA: with RA
the member-pair control had moved to 1632 unseen, and with VC it reads
the recorded 1608 again; the openers control re-taken at c1ceb3b reads
1,062 in both spellings. The Measured bullet cites the pushed 5e77598
for its figures, whose corpora match, and its snapshot breakdown says
which examples read alike. A version note, locales.rst's "by default",
the de.toml bullet's comma, and locales/AGENTS.md's double comma.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both release-log bullets kept, and STRICT_UNGATED's comment keeps both
additions (#1463's cheikh and sultan, #1483's ra). The compiled files
were regenerated with tools/vocab/build.py and were byte-identical to the
merge.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…' provenance

The review of 88ccf54 found the Measured bullet's "but for rules/C12's"
false (5e77598 holds all nine respellings: 21 committed names match the
filter at master, 12 there) and its "9 entries" breakdown reproducible
from no committed tree; it now states what the committed snapshot lists
against master's record (nine out, nine in, two moved) and how the seven
moving RA texts are found. Cost (7) reaches RA behind a title after a
family comma too ('Smith, Mr RA John'), ahead of a credential the part
staying the run ('Smith, RA PhD'); cost (3) says RA behind a credential
stays in the run ('SMITH, MD RA') and records 'SMITH, RA, JOHN'; and two
readings the gated class already gives on master are recorded
('ROBERT (RA) ALLEN', 'Smith, RA PhD Ma'). The release log and migrate.rst
say "opening the part" and "ahead of a name word", as the entry does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… Smith, Mr RA

The review of c94ed75 found no claim wrong and the summaries still
wider than the behavior: migrate.rst said Ra ending a name after a comma
is the credential, where only RA in capitals is ('Kim, Ra' reads given
'Ra'); cost (7) could be read as reaching 'Smith, Mr RA', which keeps
suffix 'RA'; and cost (3)'s FEC clause had drifted from 'KING, RA'. The
release log and migrate.rst list 'Kim, Ra' among the moves, and
migrate.rst says 2.0 through 3.1 read a two-word name ending in Ra as the
credential too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@derek73
derek73 merged commit 507a64e into master Nov 22, 2026
14 checks passed
@derek73
derek73 deleted the feat/ra-name-readings branch November 22, 2026 04:47
@derek73 derek73 mentioned this pull request Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

suffixes Generational suffixes and credentials (rules/S) titles Titles and honorifics (rules/H) vocabulary Fixed by a word-list entry: per-word vocabulary and language packs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Should Ra be a name by default as well as a credential and a title? (Kim Ra gives suffix Ra; Korean and Burmese names)

1 participant